package net.osweb.crm.modules.sys.bean;

import java.sql.Timestamp;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Systemplate entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "sys_template")
public class SysTemplate implements java.io.Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 6609213405670883617L;
	private Integer id;
	private String titleName;
	private String category;
	private String template;
	private Timestamp createtime;
	private String comment;

	// Constructors

	/** default constructor */
	public SysTemplate() {
	}

	/** full constructor */
	public SysTemplate(String titleName, String category, String template,
			Timestamp createtime, String comment) {
		this.titleName = titleName;
		this.category = category;
		this.template = template;
		this.createtime = createtime;
		this.comment = comment;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "title_name", length = 127)
	public String getTitleName() {
		return this.titleName;
	}

	public void setTitleName(String titleName) {
		this.titleName = titleName;
	}

	@Column(name = "category", length = 127)
	public String getCategory() {
		return this.category;
	}

	public void setCategory(String category) {
		this.category = category;
	}

	@Column(name = "template", length = 65535)
	public String getTemplate() {
		return this.template;
	}

	public void setTemplate(String template) {
		this.template = template;
	}

	@Column(name = "createtime", length = 19)
	public Timestamp getCreatetime() {
		return this.createtime;
	}

	public void setCreatetime(Timestamp createtime) {
		this.createtime = createtime;
	}

	@Column(name = "comment")
	public String getComment() {
		return this.comment;
	}

	public void setComment(String comment) {
		this.comment = comment;
	}

}